package com.vsd.repository;


import java.util.Collection;

import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.vsd.domain.AreaAgent;

@RestResource(exported = false)
public interface AreaAgentRepository extends CrudRepository<AreaAgent, String> {

	Collection<AreaAgent> findByAccount(String account);
	
	Collection<AreaAgent> findByAccountAndPassword(String account,String password);
	
}
